﻿using FriendStar.Code;
using FriendStar.Data;
using FriendStar.Domain.Entity.VBaseData;
using FriendStar.Domain.IRepository.VBaseData;
using FriendStar.Repository.VBaseData;
using System.Collections.Generic;

namespace FriendStar.Repository.VBaseData
{
    public class V_ZSJ_12_GH_SuProduction_DatStorRepository : RepositoryBase<V_ZSJ_12_GH_SuProduction_DatStorEntity>, IV_ZSJ_12_GH_SuProduction_DatStorRepository
    {
        public List<V_ZSJ_12_GH_SuProduction_DatStorEntity> GetV_ZSJ_12_GH_SuProduction_DatStorList(string currentDate,string companyNameOrNo,string useUnit,string docuTypeNO,string productionNO, string productionName)
        {
            return this.ExecuteStoredProcedure("PROC_GH_SuProduction_DatStor", new { FCurDate = currentDate, FHappenCompanyNameOrNo = companyNameOrNo+"", UseUnit = useUnit, FDocuTypeNO = docuTypeNO+"", FProductionNO= productionNO+"", FProductionName= productionName+"" });
        }

        public List<V_ZSJ_12_GH_SuProduction_DatStorEntity> GetListForPick(string currentDate, string companyNameOrNo, string useUnit, string docuTypeNO, string productionNO,string productionName)
        {
            return this.ExecuteStoredProcedure("PROC_GH_SuProduction_DatStor2", new { FCurDate = currentDate, FHappenCompanyNameOrNo = companyNameOrNo, UseUnit = useUnit, FDocuTypeNO = docuTypeNO, FProductionNO = productionNO, FProductionName= productionName });
        }
    }
}
